//
//  YFPublishDongtaiView.h
//  project
//
//  Created by Winny Zhang on 2019/4/8.
//  Copyright © 2019 健健. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "YFCamera.h"
#import "LEEAlert.h"
#import "YFImagePicker.h"
#import "HJLocationManager.h"
#import "YBImageBrowser.h"

NS_ASSUME_NONNULL_BEGIN

@interface YFPublishDongtaiView : UIView

/**
 发布回调
 */
@property (nonatomic, copy) void(^publishAction)(NSString * _Nullable dongtai, BOOL isVideo, NSURL * _Nullable videoURL, UIImage * _Nullable videoCoverImage, NSArray <UIImage *> * _Nullable images);
/**
 我的位置回调
 */
@property (nonatomic, copy) void(^locationAction)(void);

/**
 更新header的高度
 */
@property (nonatomic, copy) void(^updatePublishViewFrameAction)(CGFloat height);

/**
 是图片 传过来图片数组
 */
@property (nonatomic, strong) NSArray <UIImage *> *photos;

/**
 是视频，传过来的视频 coverImage
 */
@property (nonatomic, strong) UIImage *videoCoverImage;

/**
 播放视频的 URL
 */
@property (nonatomic, strong) NSURL *videoURL;
/**
 发布内容的 textView
 */
@property (weak, nonatomic) IBOutlet UITextView *publishTextView;
@property (nonatomic, assign) long long videoDuration;

@property (nonatomic, copy) NSString *locationStr;

@property (nonatomic,strong) NSArray <PHAsset * >* assets;
@property (nonatomic, assign) BOOL isImage;
@end

NS_ASSUME_NONNULL_END
